package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class GameListUpdatedEvent
		extends GwtEvent<GameListUpdatedHandler>
{
	public static final Type<GameListUpdatedHandler>	TYPE	= new GwtEvent.Type<GameListUpdatedHandler>();

	private String										teamId;
	private String										betId;
	private String										tagId;

	public GameListUpdatedEvent(String teamid)
	{
		this(teamid, "", "");
	}

	public GameListUpdatedEvent(String teamid, String betid)
	{
		this(teamid, betid, "");
	}

	public GameListUpdatedEvent(String teamid, String betid, String tagid)
	{
		this.setTeamId(teamid);
		this.setBetId(betid);
	}

	@Override
	protected void dispatch(GameListUpdatedHandler handler)
	{
		handler.onGameListUpdated(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<GameListUpdatedHandler> getAssociatedType()
	{
		return TYPE;
	}

	public void setTeamId(String teamId)
	{
		this.teamId = teamId;
	}

	public String getTeamId()
	{
		return teamId;
	}

	public String getBetId()
	{
		return betId;
	}

	public void setBetId(String betId)
	{
		this.betId = betId;
	}

	public String getTagId()
	{
		return tagId;
	}

	public void setTagId(String tagId)
	{
		this.tagId = tagId;
	}

}
